// 路口协调相位配置
const ROAD_COORDINATE = {
  501: { forward: 'AB', reverse: 'BC' },
  502: { forward: 'AB', reverse: 'BC' },
  503: { forward: 'ABC', reverse: 'CD' },
  504: { forward: 'BC', reverse: 'AB' },
  505: { forward: 'DE', reverse: 'CD' },
  506: { forward: 'AB', reverse: 'BCD' },
  // 50711: { forward: 'ABC', reverse: 'CD' },
  507: { forward: 'AB', reverse: 'BC' },
  // 50811: { forward: 'CFG', reverse: 'CFG' },
  508: { forward: 'BCDE', reverse: 'ABC' },
  // 51011: { forward: 'BCD', reverse: 'AB' },
  510: { forward: 'BC', reverse: 'AB' },
  612: { forward: 'DE', reverse: 'ABCD' },
  613: { forward: 'CD', reverse: 'BC' },
  // 61411: { forward: 'E', reverse: 'E' },
  614: { forward: 'EFG', reverse: 'DEF' },
  618: { forward: 'AB', reverse: 'BC' },
  619: { forward: 'BC', reverse: 'AB' },
  620: { forward: 'BC', reverse: 'AB' },
  628: { forward: '', reverse: '' },
  629: { forward: 'BCD', reverse: 'ABC' },
  630: { forward: 'AB', reverse: 'BC' },
  631: { forward: 'BC', reverse: 'AB' },
  632: { forward: 'AB', reverse: 'BC' },
  633: { forward: 'BC', reverse: 'AB' },
  634: { forward: 'AB', reverse: 'BC' },
  635: { forward: 'BC', reverse: 'AB' },
}

// 路段距离配置
const ROAD_LENGTH = {
  101: { forward: 0, reverse: 2382 },
  615: { forward: 2382, reverse: 651 },
  614: { forward: 652, reverse: 1505 },
  613: { forward: 1498, reverse: 1030 },
  612: { forward: 1016, reverse: 933 },
  618: { forward: 958, reverse: 988 },
  619: { forward: 999, reverse: 877 },
  620: { forward: 868, reverse: 1550 },
  501: { forward: 1553, reverse: 937 },
  502: { forward: 931, reverse: 1014 },
  503: { forward: 1022, reverse: 1717 },
  504: { forward: 1716, reverse: 948 },
  505: { forward: 947, reverse: 1959 },
  506: { forward: 1954, reverse: 1813 },
  507: { forward: 1805, reverse: 479 },
  508: { forward: 481, reverse: 2237 },
  510: { forward: 2237, reverse: 514 },
  511: { forward: 511, reverse: 2379 },
  517: { forward: 2411, reverse: 0 },
  628: { forward: 0, reverse: 293 },
  629: { forward: 291, reverse: 387 },
  630: { forward: 385, reverse: 561 },
  631: { forward: 597, reverse: 574 },
  632: { forward: 572, reverse: 673 },
  633: { forward: 669, reverse: 397 },
  634: { forward: 391, reverse: 608 },
  635: { forward: 604, reverse: 0 }
}